import request from "@/request/index.js"

// 采购申请列表
export function getPurchaseList(data) {
    return request({
        url: "/officesupplies/officeSuppliesPurchaseApply/listApplyRecord",
        method: "get",
        params: data
      })
  }
  
  // 采购申请详情
  export function getPurchaseDetail(id) {
    return request({
      url: `/officesupplies/officeSuppliesPurchaseApply/detail/${id}`,
      method: "get"
    })
  }
  
  // 新增采购申请
  export function addPurchase(data) {
    return request({
      url: "/officesupplies/officeSuppliesPurchaseApply/add",
      method: "post",
      data
    })
  }